button,
input,
textarea,
select {
    font-size: inherit;
}

body {
    font-family: Arial, sans-serif;
    font-size: 10px;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    height: 100vh;
    overflow: hidden;
}

#graphs {
    display: flex;
    height: 70vh;
    width: 100%;
    overflow: hidden;
}

.graph {
    width: 50%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.graph iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#control-panels {
    display: flex;
    justify-content: space-around;
    background-color: #fff;
    height: 30vh;
    width: 100%;
    overflow: hidden;
}

.control-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.control-panel > * {
    width: 100%;
}

.control-panel form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.control-panel input[type="number"] {
    flex-grow: 1;
    margin-right: 1px;
}

.control-panel input[type="button"] {
    flex-grow: 1;
    margin-right: 1px;
}

.set-file-form {
    display: flex;
    align-items: center;
}

.set-file {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.set-file input[type="file"] {
    flex-grow: 1;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#progress-bar-container {
    width: 200px;
    height: 20px;
    background: #eee;
    margin: 10px 0;
    border-radius: 10px;
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: #3498db;
    transition: width 0.3s ease;
}

#progress-text {
    text-align: center;
    margin-top: 5px;
}

#progress-message {
    margin-top: 10px;
    color: #666;
}